/*    */ package bupt.luo.demo.service;
/*    */ import bupt.luo.demo.entity.CityMonthQuantity;
/*    */ import bupt.luo.demo.entity.ProvinceMoney;
/*    */ import bupt.luo.demo.entity.ProvinceMonthMoney;
/*    */ import bupt.luo.demo.entity.ProvinceMonthQuantity;
/*    */ import bupt.luo.demo.entity.ProvinceQuantity;
/*    */ import bupt.luo.demo.mapper.SoldDao;
/*    */ import java.util.List;
/*    */ import org.springframework.beans.factory.annotation.Autowired;
/*    */ import org.springframework.stereotype.Service;
/*    */ 
/*    */ @Service
/*    */ public class SoldService {
/*    */   public List<ProvinceQuantity> getProvinceQuantity(String countryName) {
/* 15 */     if (countryName.equals("中国")) {
/* 16 */       List<ProvinceQuantity> allProvinceQuantity = this.soldDao.getAllProvinceQuantity();
/* 17 */       if (allProvinceQuantity.size() == 0) return null; 
/* 18 */       return allProvinceQuantity;
/*    */     } 
/* 20 */     return null;
/*    */   } @Autowired
/*    */   private SoldDao soldDao;
/*    */   public List<ProvinceMoney> getProvinceMoney(String countryName) {
/* 24 */     if (countryName.equals("中国")) {
/* 25 */       List<ProvinceMoney> allProvinceMoney = this.soldDao.getAllProvinceMoney();
/* 26 */       if (allProvinceMoney.size() == 0) return null; 
/* 27 */       return allProvinceMoney;
/*    */     } 
/* 29 */     return null;
/*    */   }
/*    */   
/*    */   public List<ProvinceMonthQuantity> getProvinceMonthQuantity(String provinceName) {
/* 33 */     List<ProvinceMonthQuantity> provinceMonthQuantity = this.soldDao.getProvinceMonthQuantity(provinceName);
/* 34 */     if (provinceMonthQuantity.size() == 0) return null; 
/* 35 */     return provinceMonthQuantity;
/*    */   }
/*    */   public List<ProvinceMonthMoney> getProvinceMonthMoney(String provinceName) {
/* 38 */     List<ProvinceMonthMoney> provinceMonthMoney = this.soldDao.getProvinceMonthMoney(provinceName);
/* 39 */     if (provinceMonthMoney.size() == 0) return null; 
/* 40 */     return provinceMonthMoney;
/*    */   }
/*    */   public List<CityMonthQuantity> getCityMonthQuantity(String provinceName, int month) {
/* 43 */     List<CityMonthQuantity> cityMonthMoney = this.soldDao.getCityMonthMoney(provinceName, month);
/* 44 */     if (cityMonthMoney.size() == 0) return null; 
/* 45 */     return cityMonthMoney;
/*    */   }
/*    */ }


/* Location:              C:\Users\28293\Desktop\demo-0.0.1-SNAPSHOT\BOOT-INF\classes.zip!\classes\bupt\luo\demo\service\SoldService.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */